Skip to main content
Version: Upcoming

SRMLegBrkrState

V8 Message Definiton

SpdrMLegBrkrState records are published by execution engines and describe the current state of a broker that is managing a SpiderRock parent order. These records include a description of the active child orders managed by the broker. Records are updated whenever a child order changes and also at other times but are not completely live and may not always reflect current market data or limit levels for working orders.

METADATA

AttributeValue
Topic3985-parent-orders
MLink TokenClientTrading
ProductSRTrade
accessTypeSELECT
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'
ticker_tsenum - TickerSrcPRI'None'
ticker_tkVARCHAR(12)PRI''
accntVARCHAR(16)PRI, SEC''
spdrSourceenum - SpdrSourcePRI'None'
groupingCodeCHAR(19)PRI'0000-0000-0000-0000'
orderSideenum - BuySellPRI'None'
clientFirmVARCHAR(16)PRI, SEC''SR client firm
engineNameVARCHAR(32)''execution engine
parentNumberCHAR(19)'0000-0000-0000-0000'SPDR parent number most recentcurrently active
baseParentNumberCHAR(19)'0000-0000-0000-0000'
modifyNumberCHAR(19)'0000-0000-0000-0000'most recent parent number affecting this order Modify
altOrderIdVARCHAR(24)''alternate order ID usually clOrdId from client
packageIdBIGINT0groups related orderbrokers together eg Legger wMLeg Parent
altAccntVARCHAR(32)''alternate client assigned long account string optional
altUserNameVARCHAR(24)''alternate client assigned user name optional
stageTypeenum - SpdrStageType'None'parent is a staged order ToolVisible
startTypeenum - StartType'None'
isFlaggedenum - YesNo'None'broker state records is flagged for action user alert only
noticeNumberCHAR(19)'0000-0000-0000-0000'
execBrkrCodeVARCHAR(16)''execBrkrCode attached to parent order if any
spreadClassenum - SpreadClass'None'
spreadFlavorenum - SpreadFlavor'None'
stockSideenum - BuySell'None'
ssaleFlagenum - ShortSaleFlag'None'
locateQuanINT0available locate quantity if selling short child order send time
locateFirmVARCHAR(6)''firm granting the locate also locate firm used on street FIX orders
locatePoolVARCHAR(16)''locate pool firm granting the locate
stockSharesINT0number of shares included zero if none
stockLegIdBIGINT0
stockFillQuanINT0
stockAvgFillPriceDOUBLE0
refUPrcFLOAT0reference underlier price PrcDe orders
liveUPrcFLOAT0
uPriceFormatenum - PriceFormat'None'underlier price format code
stockCpxFLOAT0child best price
stockCszINT0child cumulative share represented at best price
stockCexBIGINT0child bit mask of all exchanges where we are representing this order
numLegsTINYINT UNSIGNED0number of valid legs below
secKey1_atenum - AssetType'None'leg 1
secKey1_tsenum - TickerSrc'None'leg 1
secKey1_tkVARCHAR(12)''leg 1
secKey1_yrSMALLINT UNSIGNED0leg 1
secKey1_mnTINYINT UNSIGNED0leg 1
secKey1_dyTINYINT UNSIGNED0leg 1
secKey1_xxDOUBLE0leg 1
secKey1_cpenum - CallPut'Call'leg 1
secType1enum - SpdrKeyType'None'
ratio1SMALLINT UNSIGNED0
side1enum - BuySell'None'
positionType1enum - PositionType'None'
legId1BIGINT0
fillQuan1INT0
avgFillPrice1DOUBLE0
vega1FLOAT0
refUPrc1DOUBLE0reference underlier price PrcDe orders
refDelta1FLOAT0reference delta for PrcDe order handling
refEarnCnt1TINYINT UNSIGNED0reference of earnings moves before expiration
liveUPrc1DOUBLE0
priceFormat1enum - PriceFormat'None'option price format code
legCpx1FLOAT0child best price
legCsz1INT0child cumulative share represented at best price
legCex1BIGINT0child bit mask of all exchanges where we are representing this order
legCmplAvgPrice1DOUBLE0average leg completion price
legCmplSecKey1_atenum - AssetType'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey1_tsenum - TickerSrc'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey1_tkVARCHAR(12)''final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey1_yrSMALLINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey1_mnTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey1_dyTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey1_xxDOUBLE0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey1_cpenum - CallPut'Call'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecType1enum - SpdrKeyType'None'usually Future or Option None if not yet valid
secKey2_atenum - AssetType'None'leg 2
secKey2_tsenum - TickerSrc'None'leg 2
secKey2_tkVARCHAR(12)''leg 2
secKey2_yrSMALLINT UNSIGNED0leg 2
secKey2_mnTINYINT UNSIGNED0leg 2
secKey2_dyTINYINT UNSIGNED0leg 2
secKey2_xxDOUBLE0leg 2
secKey2_cpenum - CallPut'Call'leg 2
secType2enum - SpdrKeyType'None'
ratio2SMALLINT UNSIGNED0
side2enum - BuySell'None'
positionType2enum - PositionType'None'
legId2BIGINT0
fillQuan2INT0
avgFillPrice2DOUBLE0
vega2FLOAT0
refUPrc2DOUBLE0reference underlier price PrcDe orders
refDelta2FLOAT0reference delta for PrcDe order handling
refEarnCnt2TINYINT UNSIGNED0reference of earnings moves before expiration
liveUPrc2DOUBLE0
priceFormat2enum - PriceFormat'None'option price format code
legCpx2FLOAT0child best price
legCsz2INT0child cumulative share represented at best price
legCex2BIGINT0child bit mask of all exchanges where we are representing this order
legCmplAvgPrice2DOUBLE0average leg completion price
legCmplSecKey2_atenum - AssetType'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey2_tsenum - TickerSrc'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey2_tkVARCHAR(12)''final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey2_yrSMALLINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey2_mnTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey2_dyTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey2_xxDOUBLE0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey2_cpenum - CallPut'Call'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecType2enum - SpdrKeyType'None'usually Future or Option None if not yet valid
secKey3_atenum - AssetType'None'leg 3
secKey3_tsenum - TickerSrc'None'leg 3
secKey3_tkVARCHAR(12)''leg 3
secKey3_yrSMALLINT UNSIGNED0leg 3
secKey3_mnTINYINT UNSIGNED0leg 3
secKey3_dyTINYINT UNSIGNED0leg 3
secKey3_xxDOUBLE0leg 3
secKey3_cpenum - CallPut'Call'leg 3
secType3enum - SpdrKeyType'None'
ratio3SMALLINT UNSIGNED0
side3enum - BuySell'None'
positionType3enum - PositionType'None'
legId3BIGINT0
fillQuan3INT0
avgFillPrice3DOUBLE0
vega3FLOAT0
refUPrc3DOUBLE0reference underlier price PrcDe orders
refDelta3FLOAT0reference delta for PrcDe order handling
refEarnCnt3TINYINT UNSIGNED0reference of earnings moves before expiration
liveUPrc3DOUBLE0
priceFormat3enum - PriceFormat'None'option price format code
legCpx3FLOAT0child best price
legCsz3INT0child cumulative share represented at best price
legCex3BIGINT0child bit mask of all exchanges where we are representing this order
legCmplAvgPrice3DOUBLE0average leg completion price
legCmplSecKey3_atenum - AssetType'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey3_tsenum - TickerSrc'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey3_tkVARCHAR(12)''final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey3_yrSMALLINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey3_mnTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey3_dyTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey3_xxDOUBLE0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey3_cpenum - CallPut'Call'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecType3enum - SpdrKeyType'None'usually Future or Option None if not yet valid
secKey4_atenum - AssetType'None'leg 4
secKey4_tsenum - TickerSrc'None'leg 4
secKey4_tkVARCHAR(12)''leg 4
secKey4_yrSMALLINT UNSIGNED0leg 4
secKey4_mnTINYINT UNSIGNED0leg 4
secKey4_dyTINYINT UNSIGNED0leg 4
secKey4_xxDOUBLE0leg 4
secKey4_cpenum - CallPut'Call'leg 4
secType4enum - SpdrKeyType'None'
ratio4SMALLINT UNSIGNED0
side4enum - BuySell'None'
positionType4enum - PositionType'None'
legId4BIGINT0
fillQuan4INT0
avgFillPrice4DOUBLE0
vega4FLOAT0
refUPrc4DOUBLE0reference underlier price PrcDe orders
refDelta4FLOAT0reference delta for PrcDe order handling
refEarnCnt4TINYINT UNSIGNED0reference of earnings moves before expiration
liveUPrc4DOUBLE0
priceFormat4enum - PriceFormat'None'option price format code
legCpx4FLOAT0child best price
legCsz4INT0child cumulative share represented at best price
legCex4BIGINT0child bit mask of all exchanges where we are representing this order
legCmplAvgPrice4DOUBLE0average leg completion price
legCmplSecKey4_atenum - AssetType'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey4_tsenum - TickerSrc'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey4_tkVARCHAR(12)''final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey4_yrSMALLINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey4_mnTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey4_dyTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey4_xxDOUBLE0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey4_cpenum - CallPut'Call'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecType4enum - SpdrKeyType'None'usually Future or Option None if not yet valid
secKey5_atenum - AssetType'None'leg 5
secKey5_tsenum - TickerSrc'None'leg 5
secKey5_tkVARCHAR(12)''leg 5
secKey5_yrSMALLINT UNSIGNED0leg 5
secKey5_mnTINYINT UNSIGNED0leg 5
secKey5_dyTINYINT UNSIGNED0leg 5
secKey5_xxDOUBLE0leg 5
secKey5_cpenum - CallPut'Call'leg 5
secType5enum - SpdrKeyType'None'
ratio5SMALLINT UNSIGNED0
side5enum - BuySell'None'
positionType5enum - PositionType'None'
legId5BIGINT0
fillQuan5INT0
avgFillPrice5DOUBLE0
vega5FLOAT0
refUPrc5DOUBLE0reference underlier price PrcDe orders
refDelta5FLOAT0reference delta for PrcDe order handling
refEarnCnt5TINYINT UNSIGNED0reference of earnings moves before expiration
liveUPrc5DOUBLE0
priceFormat5enum - PriceFormat'None'option price format code
legCpx5FLOAT0child best price
legCsz5INT0child cumulative share represented at best price
legCex5BIGINT0child bit mask of all exchanges where we are representing this order
legCmplAvgPrice5DOUBLE0average leg completion price
legCmplSecKey5_atenum - AssetType'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey5_tsenum - TickerSrc'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey5_tkVARCHAR(12)''final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey5_yrSMALLINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey5_mnTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey5_dyTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey5_xxDOUBLE0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey5_cpenum - CallPut'Call'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecType5enum - SpdrKeyType'None'usually Future or Option None if not yet valid
secKey6_atenum - AssetType'None'leg 6
secKey6_tsenum - TickerSrc'None'leg 6
secKey6_tkVARCHAR(12)''leg 6
secKey6_yrSMALLINT UNSIGNED0leg 6
secKey6_mnTINYINT UNSIGNED0leg 6
secKey6_dyTINYINT UNSIGNED0leg 6
secKey6_xxDOUBLE0leg 6
secKey6_cpenum - CallPut'Call'leg 6
secType6enum - SpdrKeyType'None'
ratio6SMALLINT UNSIGNED0
side6enum - BuySell'None'
positionType6enum - PositionType'None'
legId6BIGINT0
fillQuan6INT0
avgFillPrice6DOUBLE0
vega6FLOAT0
refUPrc6DOUBLE0reference underlier price PrcDe orders
refDelta6FLOAT0reference delta for PrcDe order handling
refEarnCnt6TINYINT UNSIGNED0reference of earnings moves before expiration
liveUPrc6DOUBLE0
priceFormat6enum - PriceFormat'None'option price format code
legCpx6FLOAT0child best price
legCsz6INT0child cumulative share represented at best price
legCex6BIGINT0child bit mask of all exchanges where we are representing this order
legCmplAvgPrice6DOUBLE0average leg completion price
legCmplSecKey6_atenum - AssetType'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey6_tsenum - TickerSrc'None'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey6_tkVARCHAR(12)''final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey6_yrSMALLINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey6_mnTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey6_dyTINYINT UNSIGNED0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey6_xxDOUBLE0final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecKey6_cpenum - CallPut'Call'final settlement secKey contract that DAC TAS TACO etc will convert to might not be valid until completed
legCmplSecType6enum - SpdrKeyType'None'usually Future or Option None if not yet valid
mlegVegaFLOAT0net vega per spread
mlegWtVegaFLOAT0net wt vega per spread
mlegDeltaFLOAT0net delta per spread
mlegGammaFLOAT0net gamma per spread
mlegThetaFLOAT0net theta per spread
descriptionVARCHAR(24)''user defined
orderSizeINT0order size of most recent parent order
orderActiveSizeINT0total activated size total size released for execution 2 all available size
leavesQuantityINT0current child order leaves quantity quantity actively working in the marketall child orders
spdrOrderStatusenum - SpdrOrderStatus'PendNew'
spdrCloseReasonenum - SpdrCloseReason'None'
spdrRejectReasonenum - SpdrRejectReason'None'
spdrCloseDetailTxtTINYTEXT''
activeHoldStateenum - ActiveHoldState'None'
activeHoldReasonTINYTEXT''
openLegsTINYINT UNSIGNED0
cumSquareQtyINT0cumulative spread quantity filled all legs received
avgSquarePrcDOUBLE0
cumPartialQtyINT0cumulative spread quantity partially filled at least one leg received expected cumFilledQty if all legs square up
completionTypeenum - CompletionType'None'None DAC POC TAS TACO BTIC
completionStateenum - CompletionState'None'None Pending Complete
avgSquareCmplPriceDOUBLE0completion trade price final trade price also avg completion price
fillVegaFLOAT0net vega filled
fillWtVegaFLOAT0net wt vega filled
fillDeltaFLOAT0net delta filled
fillDDeltaFLOAT0net delta filled
fillGammaFLOAT0net gamma filled
fillThetaFLOAT0net theta filled
lastFillDttmDATETIME(6)'1900-01-01 00:00:00.000000'
riskLimitSizeINT0risk limit size
riskLimitDescenum - SpdrRisk'None'reason for size reduction
riskLimitLevelenum - SpdrRiskLevel'None'risk limit level responsible for reduction
maxProgressenum - MaxProgress'None'maximum point of progress for most recent parent order
maxProgressDetailVARCHAR(48)''additional detail on point of maximum progress
maxProgressTimeDATETIME(6)'1900-01-01 00:00:00.000000'time of last max progress advance
algoStateenum - AlgoState'None'enum current state of order handler maker
algoCounterINT0number of times order checked by algo handler note most checks result in no action
makeStateenum - AlgoState'None'enum current state of make handler maker
makeCounterINT0number of times order checked by make algo handler note most checks result in no action
mktRespStateenum - MktRespState'None'enum current state of response handler if any
mktRespCounterINT0number of times order checked by market response handler note most checks result in no action
brokerStateenum - BrokerState'None'broker monitor state
brokerCounterINT0number of times order checked by broker monitor note most checks result in no action
spdrMktStateenum - SpdrMarketState'None'enum market state
spdrBrokerStatusenum - SpdrBrokerStatus'None'
progressRuleDetailTINYTEXT''TwapVwap progress detail
lastChildRejectDttmDATETIME(6)'1900-01-01 00:00:00.000000'last child order reject dttm if any
lastChildRejectTextTINYTEXT''last child order reject reasontext if any
riskGroupIdCHAR(19)'0000-0000-0000-0000'autohedge risk group
triggerGroupIdBIGINT0WaitTrigger group Id
hedgeGroupingCodeBIGINT0autohedge risk group
autoHedgeenum - AutoHedge'None'
hedgeInstrumentenum - HedgeInst'None'autohedge instrument from parent order
hedgeSecKey_atenum - AssetType'None'autohedge sec key if any
hedgeSecKey_tsenum - TickerSrc'None'autohedge sec key if any
hedgeSecKey_tkVARCHAR(12)''autohedge sec key if any
hedgeSecKey_yrSMALLINT UNSIGNED0autohedge sec key if any
hedgeSecKey_mnTINYINT UNSIGNED0autohedge sec key if any
hedgeSecKey_dyTINYINT UNSIGNED0autohedge sec key if any
hedgeSecTypeenum - SpdrKeyType'None'autohedge sec type Stock or Future
hedgeBetaRatioFLOAT0autohedge ratio from parent order if supplied or computed by SR
hedgeScopeenum - HedgeScope'None'hedge group scope RiskGroup or Accnt
hedgeSessionenum - MarketSession'None'market session for the autohedge order
externHedgeExDestVARCHAR(16)''external broker exDest only used if orderHandlingExtern Should match FixRoutingTabledestination type eg Nighthawk
externHedgeParamsTINYTEXT''external algo namesparameters usually just an algo name usually copied from the FixRoutingTableexternParams
hedgeFillUMarkLmtPrcenum - YesNo'None'set a price limit on the autohedge order based on the most recent option fillUMark
bestWayPrcFLOAT0current leg market nbbo at time of record publish
wrstWayPrcFLOAT0current leg market nbbo ask at time of record publish
bestWaySzINT0current leg market nbbo cum bid size at time of record publish
wrstWaySzINT0current leg market nbbo cum ask size at time of record publish
surfacePrcFLOAT0SR spread surface price record publish
surfaceVolFLOAT0
surfaceUPrcFLOAT0
limitPriceDOUBLE0spread limit price
limitRefUPrcDOUBLE0
limitErrenum - LimitError'None'limit price error code
makeLimitPriceDOUBLE0
takeLimitPriceDOUBLE0
cxlUPrcRangeenum - UPrcCxl'None'cancel spdr order ifwhen outside stock price range
minUBidFLOAT0Used in conjunction with minMaxType maxUAsk When set implements a lower bound on the underlying price and will either suspend or cancel an order when violated
maxUAskFLOAT0Used in conjunction with minMaxType minUBid When set implements an upper bound on the underlying price and will either suspend or cancel an order when violated
minMaxTypeenum - MinMaxType'None'if Prc minUBidmaxUAsk are expressed as prices if Pct then they are expresses as pct change since parent order arrival
leadSideenum - BuySell'None'for legged orders which side to lead with optional None ok
maxCompletionSlippageDOUBLE0maximum price slippage to complete an open basket or a cross auction face side slippage
orderRefPremiumFLOAT0reference premium mleg orders only
strategyAccntVARCHAR(16)''SR strategy account option if exists will be validated SPR33194
strategyVARCHAR(36)''parent order strategy description only
userNameVARCHAR(24)SEC''user that entered the most recent parent order
visibleInSVenum - YesNo'None'allow order to be visible in SV do not use for high volume of orders
spdrCommentTINYTEXT''
takeReachRuleenum - ReachRule'None'Immediate reach room immediately available Delayed available after 13 seconds Passive available if contra side aggresses WeakOnly only take if available size avgMarketSize ISOSweep Intermarket Sweep requires WaitTrigger
maxExposureSizeINT0maximum simultaneous cumulative child order public size exposure 2 orderActiveSize order can overfill if orderActiveSize and numMakeExchanges 2
numMakeExchangesTINYINT UNSIGNED0number of exchanges 2 4 on which to publish public making orders Effective number might be less than requested number if sufficient exchanges are not available
publicSizeenum - PublicSizeHandling'None'public order size handling
progressRuleenum - ProgressRule'None'Immediate all size immediately availableTWAP size released in time intervalsVWAP size released in volume intervals
progressSliceCntTINYINT UNSIGNED0number of progress slices to use default 4 or 8 max 20
progressExposeTimeINT0minimum time secs to expose order 0 no minimum used to guarantee that the order is exposed at midmarket for some time before actively taking
maxChildOrdersINT0maximum number of child orders that can be generated by this parent order order will terminate ifwhen this cap is reachedzero or neg unlimited
exchMaskBIGINT0eligible exchanges 0 all
marketSessionenum - MarketSession'None'
startDttmDATETIME(6)'1900-01-01 00:00:00.000000'Order Start DateTime
orderDurationINT0optional number of seconds
activeDurationINT0optional number of seconds
goodTillDttmDATETIME(6)'1900-01-01 00:00:00.000000'optional default 20990202
expireDttmDATETIME(6)'1900-01-01 00:00:00.000000'expected order expiration dttm
parentOrderHandlingenum - ParentOrderHandling'None'
parentBalanceHandlingenum - ParentBalanceHandling'None'
atsVisibilityenum - AtsVisibility'None'
orderLimitTypeenum - SpdrLimitType'None'
orderVolLimitDOUBLE0Applies if LimitType Vol
orderPrcLimitDOUBLE0Applies if LimitType Prc
orderRefUPrcDOUBLE0reference uPrc PrcDe orders
orderRefDeFLOAT0reference delta PrcDe orders
orderRefGaFLOAT0reference gamma PrcDe orders
orderPrcOffsetDOUBLE0default0
takeLimitClassenum - SpdrLimitClass'Simple'Simple LimitPrice Surface BESTLimitPrice SurfLimit Probability BESTLimitPrice ProbLimit
takeAlphaTypeenum - AlphaType'None'Applies if limitClass Probability
takeAlphaFactorFLOAT022 ProbLimit MAXalphaProbability ProbAvg AlphaFactor ProbStd if AlphaType Relative
takeAlphaProbabilityFLOAT0ProbLimit alphaProbability if AlphaType Static
takeSurfPrcOffsetDOUBLE0default0
takeSurfVolOffsetFLOAT0default0
takeSurfWidOffsetFLOAT0default0
makeLimitClassenum - SpdrLimitClass'Simple'Simple LimitPrice Surface BESTLimitPrice SurfLimit Probability BESTLimitPrice ProbLimit
makeAlphaTypeenum - AlphaType'None'Applies if limitClass Probability
makeAlphaFactorFLOAT022 ProbLimit MAXalphaProbability ProbAvg AlphaFactor ProbStd if AlphaType Relative
makeAlphaProbabilityFLOAT0ProbLimit alphaProbability if AlphaType Static
makeSurfPrcOffsetDOUBLE0default0
makeSurfVolOffsetFLOAT0default0
makeSurfWidOffsetFLOAT0default0
orderRefEventMultFLOAT0
orderRefEventDttmDATETIME(6)'1900-01-01 00:00:00.000000'
mlegProbLimitFLOAT0live prob limit
mlegSurfOffsetFLOAT0live surface offset in premium
externExDestVARCHAR(16)''
orderDttmDATETIME(6)'1900-01-01 00:00:00.000000'order entry datetime
minSurfVolFLOAT0minimum SR spread surface vol vega weighted while parent order was working
maxSurfVolFLOAT0maximum SR spread surface vol vega weighted while parent order was working
minSurfPrcFLOAT0minimum SR spread surface price while parent order was working
maxSurfPrcFLOAT0maximum SR spread surface price while parent order was working
minSurfUPrcFLOAT0minimum SR spread surface uPrc while parent order was working
maxSurfUPrcFLOAT0maximum SR spread surface uPrc while parent order was working
minQteWidthFLOAT0minimum quote width during active order window
avgQteWidthFLOAT0average quote width during active order window
cntQteWidthINT0
arriveBidDOUBLE0
arriveAskDOUBLE0
totalSecondsFLOAT0number of seconds that the parent order was active
workingSecondsFLOAT0number of seconds with one or more working child orders in an exchange order book
prtActiveCntINT0total print events while parent order was active
prtQtyActiveINT0total quantity printed while parent order was active
cumExchFeeFLOAT0cumulative fill exch fee
cumM10PnlFLOAT0
cumArrivalPnlFLOAT0
uPrcDriftFLOAT0underlier drift since parent order start
sVolDriftFLOAT0surface vol drift since parent order start
maxGrpDayDDeltaLnFLOAT-1max acctriskGroup day delta long positive number1no limitrisk limit max limit current net counter
maxGrpDayDDeltaShFLOAT-1max acctriskGroup day delta short positive number1no limitrisk limit max limit current net counter
maxGrpDayContractsLnINT-1max acctriskGroup day opt contracts long positive number1no limitrisk limit max limit current net counter
maxGrpDayContractsShINT-1max acctriskGroup day opt contracts short positive number1no limitrisk limit max limit current net counter
maxGrpDayContractsAbsINT-1max acctriskGroup day opt contracts abs positive number1no limitrisk limit max limit abscurrent net counter
maxGrpDayVegaLnFLOAT-1max acctriskGroup day vega long positive number1no limitrisk limit max limit current net counter
maxGrpDayVegaShFLOAT-1max acctriskGroup day vega short positive number1no limitrisk limit max limit current net counter
maxGrpDayVegaAbsFLOAT-1max acctriskGroup day vega abs positive number1no limitrisk limit max limit abscurrent net counter
grpDayVegaRatioFLOAT1.0target bot sld ratio eg ratio20 means that neutral is bot vega 2x sld vega
maxAccDayWtVegaLnFLOAT-1max accnt day time weighted vega long positive number1no limitrisk limit max limit current net counter offset
maxAccDayWtVegaShFLOAT-1max accnt day time weighted vega short positive number1no limitrisk limit max limit current net counter offset
maxAccDayDDeltaLnFLOAT-1max accnt day delta long positive number1no limitrisk limit max limit current net counter offset
maxAccDayDDeltaShFLOAT-1max accnt day delta short positive number1no limitrisk limit max limit current net counter offset
maxGrpDayRMetric1LnFLOAT-1max acctriskGroup day rMetric1 long positive number1no limitrisk limit max limit current net counter
maxGrpDayRMetric1ShFLOAT-1max acctriskGroup day rMetric1 short positive number1no limitrisk limit max limit current net counter
maxGrpDayRMetric1AbsFLOAT-1max acctriskGroup day rMetric1 abs positive number1no limitrisk limit max limit abscurrent net counter
grpDayRMetric1RatioFLOAT1.0target bot sld ratio eg ratio05 means that neutral is bot rMetric1 05x sld rMetric1
refRMetric1Srcenum - RMetricSource'None'
orderRefRMetric1FLOAT0user supplied RMetric1 value used in RiskGroupID risk controls netRMetric1 sumfillQty orderRefRMetric1 underlierPerCn
cpx1FLOAT0
csz1INT0cumulative size represented at this price
cex1BIGINT0bit mask of all exchanges where we are representing this order
cpx2FLOAT0
csz2INT0cumulative size represented at this price
cex2BIGINT0bit mask of all exchanges where we are representing this order
cMoreTINYINT UNSIGNED0
numNewOrdersINT0number of new child orders
numParentLimitsSMALLINT UNSIGNED0number of parent limit messages received for this broker
userData1TINYTEXT''user supplied additional detail 255 charsupplied via FIX or SRSE when entering order
userData2TINYTEXT''user supplied additional detail 255 charsupplied via FIX or SRSE when entering order
updateSrcenum - UpdateSource'None'
numUpdatesINT0number of record updates cumulative for the day
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3
accnt4
spdrSource5
groupingCode6
orderSide7
clientFirm8

SECONDARY INDEX (AccntIndex) (Not Unique)

FieldSequence
accnt1

SECONDARY INDEX (ClientFirmIndex) (Not Unique)

FieldSequence
clientFirm1

SECONDARY INDEX (UserNameIndex) (Not Unique)

FieldSequence
userName1

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRTrade`.`MsgSRMLegBrkrState`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a ENUM('None','SpdrTicket','SpdrSingle','SRSE','FIX','HedgeTool','TradeHedge','OpenHedge','AutoHedge','Orphan','RiskManager','OrderManager','ManagedOrder','RFQRespSrvr','Legger','SRSEDrop','FixDrop','TicketDrop','SysTest','RFRResponse','AllocOmni','AllocClient','CertGateway','MLegResponse','LeggerX','DropManager','AutoHedgeSrvr','AuctionStrategySrvr','AllocBlockFace','AllocBlockCust','IceChatGateway','EXS2SRC','MLinkResponse','AutoResponderVD','AutoResponderRC','AutoResponderSN','AutoResponderBX','MLink','SymChatGateway','RiskDrop','PolicyOpn','PolicyTrd') */
`spdrSource` = 'None'
AND
/* Replace with a CHAR(19) */
`groupingCode` = 'Example_groupingCode'
AND
/* Replace with a ENUM('None','Buy','Sell') */
`orderSide` = 'None'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

Doc Columns Query

SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SRMLegBrkrState' ORDER BY ordinal_position ASC;